<template>
    <div class="wrap header">
        <!-- 左边logo -->
        <h1 class="logo">
            <img src="../assets/img/indexLogo.6f8ac4f0.png" alt="">
        </h1>
        <!-- 中间导航 -->
        <ul class="nav">
            <li :class="{ current: $route.path == '/home' }" @click="$router.push('/home')">首页</li>
            <li :class="{ current: $route.path == '/commodity' }" @click="$router.push('/commodity')">全部商品</li>
            <li :class="{ current: $route.path == '/centre' }" @click="$router.push('/centre')">个人中心</li>
            <li :class="{ current: $route.path == '/order ' }" @click="$router.push('/order')">我的订单</li>
            <li :class="{ current: $route.path == '/exclusive' }" @click="$router.push('exclusive')">专属福利</li>
        </ul>
        <!-- 右边搜索 -->
        <div class="serrch">
            <input type="text" placeholder="输入关键字">
            <span>
                <img src="../assets/img/search.png" alt="">
            </span>s
        </div>
    </div>
</template>

<script>
export default {
    name: 'Jifen2Header',

    data() {
        return {

        };
    },

    mounted() {

    },

    methods: {

    },
};
</script>

<style lang="less" scoped>
.header {
    height: 118px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-family: SourceHanSansSC;
    font-weight: 500;
    color: #242b39;

    .nav {
        width: 500px;
        display: flex;
        justify-content: space-between;

        li {
            cursor: pointer;
        }

        .current {
            color: #0A328E;
            font-weight: 800;
        }
    }

    .serrch {
        display: flex;

        input {
            width: 214px;
            height: 40px;
            border: 1px solid #DEDEDE;
            border-radius: 20px 0px 0px 20px;
            box-sizing: border-box;
            padding-left: 20px;
            outline: none;
        }

        span {
            width: 50px;
            height: 40px;
            background: #0A328E;
            border-radius: 0px 20px 20px 0px;
            text-align: center;
            line-height: 50px;

            img {
                width: 20px;
                height: 20px;
            }
        }
    }

}
</style>